package com.person.yhzs.exception;


import com.person.yhzs.common.ReturnData;

/**
 * 请求失败异常
 */
public class BaseException extends RuntimeException {

    int exceptionCode;

    public BaseException(String message) {
        this(ReturnData.CODE_FAIL, message);
    }

    public BaseException(int exceptionCode, String message) {
        super(message);
        this.exceptionCode = exceptionCode;
    }

    public int getExceptionCode(){
        return exceptionCode;
    }

}
